package org.example.hellomp;

import org.example.hellomp.entity.User; // 这是正确的

import org.example.hellomp.mapper.UserMapper;
import org.example.hellomp.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class test1 {
    @Autowired

    UserMapper userMapper;
    @Autowired
    UserService userService;

//    @Test
//    public void test1(){
//        System.out.println("11");
//        List<User> myUsers = userMapper.getMyUsers();
//        System.out.println(myUsers);
//    }
    @Test
    public void test2(){
        List<User> list = userService.list();
        User byId = userService.getById(1L);
        System.out.println(list);
        System.out.println(byId);
    }


}
